package com.logback.test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.util.StatusPrinter;

/**
 * @author Sam.Lee
 * @version Created：Dec 6, 2011 10:07:55 AM
 */
public class HelloWorld2 {
	public static void main(String[] args) {
		Logger logger = LoggerFactory.getLogger("com.logback.test.HelloWorld2");
		logger.debug("Hello world.");

		// print internal state
		LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
		StatusPrinter.print(lc);
	}
}
